﻿namespace MicroCloud.Identity
{
    /// <summary>
    /// 业务实现：身份认证模块
    /// </summary>
    public partial class IdentityService
    {
        #region "属性"
        #region "获取 登录日志信息查询数据集"
        /// <summary>
        /// 获取 登录日志信息查询数据集
        /// </summary>
        public IQueryable<LoginLog> LoginLogs => LoginLogRepository.QueryAsNoTracking();
        #endregion

        #endregion

        #region "方法"
        #region "删除登录日志信息信息"
        /// <summary>
        /// 删除登录日志信息信息
        /// </summary>
        /// <param name="ids">要删除的登录日志信息编号</param>
        /// <returns>业务操作结果</returns>
        public Task<OperationResult> DeleteLoginLogs(params long[] ids)
        {
            Check.NotNull(ids, nameof(ids));

            return LoginLogRepository.DeleteAsync(ids);
        }
        #endregion

        #endregion

    }
}
